package cn.tedu.sp04.Service;

import cn.tedu.sp1.Web.Util.JsonResult;
import cn.tedu.sp1.entity.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@FeignClient(name = "item-service")
public interface ItemClient {
    @GetMapping("{orderId}")
    public JsonResult<List<Item>> getItems(
            @PathVariable String orderId);
    @PostMapping("decraeseNumber")
    JsonResult<?> decraeseNumber(@RequestBody List<Item> items);
}
